[global]
fsid = {{ fsid }}
cephx = {{ environ("auth_cephx", "true") }}
cephx_require_signatures = {{ environ("auth_cephx_require_signatures", "false") }}
cephx_cluster_require_signatures = {{ environ("auth_cephx_cluster_require_signatures", "true") }}
cephx_service_require_signatures = {{ environ("auth_cephx_service_require_signatures", "false") }}

# auth
max_open_files = {{ environ("global_max_open_files", "131072") }}
osd_pool_default_pg_num = {{ environ("global_osd_pool_default_pg_num", "128") }}
osd_pool_default_pgp_num = {{ environ("global_osd_pool_default_pgp_num", "128") }}
osd_pool_default_size = {{ environ("global_osd_pool_default_size", "3") }}
osd_pool_default_min_size = {{ environ("global_osd_pool_default_min_size", "1") }}

mon_osd_full_ratio = {{ environ("global_mon_osd_full_ratio", ".95") }}
mon_osd_nearfull_ratio = {{ environ("global_mon_osd_nearfull_ratio", ".85") }}

mon_host = {{ environ("global_mon_host", "ceph-mon") }}

[mon]
mon_osd_down_out_interval = {{ environ("mon_mon_osd_down_out_interval", "600") }}
mon_osd_min_down_reporters = {{ environ("mon_mon_osd_min_down_reporters", "4") }}
mon_clock_drift_allowed = {{ environ("mon_mon_clock_drift_allowed", ".15") }}
mon_clock_drift_warn_backoff = {{ environ("mon_mon_clock_drift_warn_backoff", "30") }}
mon_osd_report_timeout = {{ environ("mon_mon_osd_report_timeout", "300") }}


[osd]
journal_size = {{ environ("osd_journal_size", "100") }}
cluster_network = {{ environ("osd_cluster_network", "10.244.0.0/16") }}
public_network = {{ environ("osd_public_network", "10.244.0.0/16") }}
osd_mkfs_type = {{ environ("osd_osd_mkfs_type", "xfs") }}
osd_mkfs_options_xfs = {{ environ("osd_osd_mkfs_options_xfs", "-f -i size=2048") }}
osd_mon_heartbeat_interval = {{ environ("osd_osd_mon_heartbeat_interval", "30") }}
osd_max_object_name_len = {{ environ("osd_max_object_name_len", "256") }}

#crush
osd_pool_default_crush_rule = {{ environ("osd_pool_default_crush_rule", "0") }}
osd_crush_update_on_start = {{ environ("osd_osd_crush_update_on_start", "true") }}

#backend
osd_objectstore = {{ environ("osd_osd_objectstore", "filestore") }}

#performance tuning
filestore_merge_threshold = {{ environ("osd_filestore_merge_threshold", "40") }}
filestore_split_multiple = {{ environ("osd_filestore_split_multiple", "8") }}
osd_op_threads = {{ environ("osd_osd_op_threads", "8") }}
filestore_op_threads = {{ environ("osd_filestore_op_threads", "8") }}
filestore_max_sync_interval = {{ environ("osd_filestore_max_sync_interval", "5") }}
osd_max_scrubs = {{ environ("osd_osd_max_scrubs", "1") }}


#recovery tuning
osd_recovery_max_active = {{ environ("osd_osd_recovery_max_active", "5") }}
osd_max_backfills = {{ environ("osd_osd_max_backfills", "2") }}
osd_recovery_op_priority = {{ environ("osd_osd_recovery_op_priority", "2") }}
osd_client_op_priority = {{ environ("osd_osd_client_op_priority", "63") }}
osd_recovery_max_chunk = {{ environ("osd_osd_recovery_max_chunk", "1048576") }}
osd_recovery_threads = {{ environ("osd_osd_recovery_threads", "1") }}

#ports
ms_bind_port_min = {{ environ("osd_ms_bind_port_min", "6800") }}
ms_bind_port_max = {{ environ("osd_ms_bind_port_max", "7100") }}

[client]
rbd_cache_enabled = {{ environ("client_rbd_cache_enabled", "true") }}
rbd_cache_writethrough_until_flush = {{ environ("client_rbd_cache_writethrough_until_flush", "true") }}
rbd_default_features = {{ environ("client_rbd_default_features", "1") }}

[mds]
mds_cache_size = {{ environ("mds_mds_cache_size", "100000") }}
